package com.bdqn.service.Impl;

import com.bdqn.entity.Parameters;
import com.bdqn.entity.Staff;
import com.bdqn.mapper.StaffManageMapper;
import com.bdqn.service.StaffManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StaffManageServiceImpl implements StaffManageService {
    @Autowired
    StaffManageMapper mapper;
    @Override
    public List<Staff> getStaffInfo(Parameters parameters) {
        return mapper.getStaffInfo(parameters);
    }

    @Override
    public int getCount(Parameters parameters) {
        return mapper.getCount(parameters);
    }

    @Override
    public int addStaffInfo(Staff staff) {
        return mapper.addStaffInfo(staff);
    }

    @Override
    public int delStaffInfo(int id) {
        return mapper.delStaffInfo(id);
    }

    @Override
    public int updateStaffInfo(Staff staff) {
        return mapper.updateStaffInfo(staff);
    }

    @Override
    public List<Staff> getStaff() {
        return mapper.getStaff();
    }

    @Override
    public int delStaffInfoss(int[] ids) {
        return mapper.delStaffInfoss(ids);
    }

    @Override
    public String Login(String staff_id, String staff_pwd) {
        return mapper.Login(staff_id, staff_pwd);
    }
}
